package oop;
//클래스
public class J31_RetanlgeService implements J31_Retanlgelnterface {

	@Override
	public float getArea(float width, float height) {
		return width * height;
	}

	@Override
	public float getPerimeter(float widht, float height) {
	return(widht *2) + (height *2);
	}
		// Vo 클래스를 그대로 가지고 왓기에 불러오는 get을 붙이어야함
	@Override
	public float getArea(J31_RetangleVo r) {return r.getWidth() * r.getHeight();}

	@Override
	public float getPerimeter(J31_RetangleVo r) {
		return(r.getWidth() *2) + (r.getHeight() *2);
		}
	
}